_init: function(params) {
params = Params.parse(params, { slideDirection: SlideDirection.LEFT });
- this.visible = true;
- this.inDrag = false;
+ this._visible = true;
+ this._inDrag = false;
this.layout = new SlideLayout();
this.layout.slideDirection = params.slideDirection;
let translationEnd = 0;
let translation = this._getTranslation();
- if (this.visible) {
+ if (this._visible) {
translationStart = translation;
} else {
translationEnd = translation;
},
_onOverviewShowing: function() {
- this.visible = true;
+ this._visible = true;
this.layout.slideX = this.getSlide();
this.actor.translation_x = this._getTranslation();
this.slideIn();
},
_onDragBegin: function() {
- this.inDrag = true;
+ this._inDrag = true;
this.actor.translation_x = 0;
this.updateSlide();
},
_onDragEnd: function() {
- this.inDrag = false;
+ this._inDrag = false;
this.updateSlide();
},
},
slideIn: function() {
- this.visible = true;
+ this._visible = true;
this._updateTranslation();
// we will update slideX and the translation from pageEmpty
},
slideOut: function() {
- this.visible = false;
+ this._visible = false;
this._updateTranslation();
// we will update slideX from pageEmpty
},
_getAlwaysZoomOut: function() {
// Always show the pager when hover, during a drag, or if workspaces are
// actually used, e.g. there are windows on more than one
- let alwaysZoomOut = this.actor.hover || this.inDrag || !Meta.prefs_get_dynamic_workspaces() || global.screen.n_workspaces > 2;
+ let alwaysZoomOut = this.actor.hover || this._inDrag || !Meta.prefs_get_dynamic_workspaces() || global.screen.n_workspaces > 2;
if (!alwaysZoomOut) {
let monitors = Main.layoutManager.monitors;
},
getSlide: function() {
- if (!this.visible)
+ if (!this._visible)
return 0;
let alwaysZoomOut = this._getAlwaysZoomOut();
},
getSlide: function() {
- if (this.visible || this.inDrag)
+ if (this._visible || this._inDrag)
return 1;
else
return 0;